package cn.itsource.hrm.client;

import cn.itsource.hrm.domain.Sso;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/sso")
@FeignClient(value = "hrm-user",fallbackFactory = SsoClientFallbackFactory.class)
public interface SsoClient {

    //添加和修改
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody Sso sso);
    //删除
    @DeleteMapping(value="/{id}")
    AjaxResult delete(@PathVariable("id") Long id);
    //获取用户
    @GetMapping("/{id}")
    Sso get(@PathVariable("id")Long id);
}
